<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<style>
  div {
    height: 300px;
    width: 300px;
    border: 1px solid;
  }
  
  .sm {
    height: 100px;
    width: 100px;
    background: orange;
    margin: 0 auto;
    animation: spin 10s 1 linear;
  }
  
  @keyframes spin {
    /*from {
      transform: translate(50%, 150px) rotate(0turn) translate(-50%, -150px) translate(50%, 50%) rotate(1turn) translate(-50%, -50%)
    }*/
    to {
      transform: translate(50%, 150px) rotate(1turn) translate(-50%, -150px) translate(50%, 50%) rotate(0turn) translate(-50%, -50%);
    }
  }
</style>

<body>
  <div>
    <div class="sm">你好</div>
  </div>

</body>

</html>